<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <title>医生详情</title>
  <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <link rel="stylesheet" href="../../static/css/style.css" th:href="@{/css/style.css}"/>
</head>
<body>
<div th:replace="~{common/layout :: header}"></div>
<div th:replace="~{common/layout :: sidebar}"></div>
<div class="container mt-5">
  <h1 class="mb-4">医生详情</h1>
  <div class="form-horizontal">
    <div class="form-group">
      <label class="control-label col-sm-2">医生ID:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${doctor.docId}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">医生编号:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${doctor.docCode}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">姓名:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${doctor.realName}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">性别:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${doctor.sex == 1 ? '男' : '女'}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">部门号:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${doctor.deptno}"></p>
      </div>
    </div>
  </div>
  <a href="/doctors" class="btn btn-default">返回医生列表</a>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
